/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.pay.model; 

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.pay.model.*;
import com.gm.memberShip.pay.persistence.interfaces.*;
import com.gm.memberShip.pay.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


public class Way  implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Way";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_WAY_ID = "wayId";
	public static final String ALIAS_WAY_NAME = "wayName";
	public static final String ALIAS_IS_OPEN = "isOpen";
	
	 
	 
	//columns START
	private java.lang.Integer id;
	private java.lang.String wayId;
	private java.lang.String wayName;
	private java.lang.Boolean isOpen;
	//columns END

	public Way(){
	}

	public Way(
		java.lang.Integer id
	){
		this.id = id;
	} 
		 
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
		 
	public void setWayId(java.lang.String value) {
		this.wayId = value;
	}
	
	public java.lang.String getWayId() {
		return this.wayId;
	}
		 
	public void setWayName(java.lang.String value) {
		this.wayName = value;
	}
	
	public java.lang.String getWayName() {
		return this.wayName;
	}
		 
	public void setIsOpen(java.lang.Boolean value) {
		this.isOpen = value;
	}
	
	public java.lang.Boolean getIsOpen() {
		return this.isOpen;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("WayId",getWayId())
			.append("WayName",getWayName())
			.append("IsOpen",getIsOpen())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Way == false) return false;
		if(this == obj) return true;
		Way other = (Way)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

